fixed crash onluanch after choosing BINARY type