fix type

close #1