fix error in ctype when \0 get not null flags