fix #29, error message is improved