Fixed Nil compare crash for char