Fixed a bug in parse boolean