to address binary type issue.

should fix #140