#8 fix bug badmatch error