fixed sting-bool comparison bug