fix boolean parser