Fixed bugs with boolean type.