Fixed type comparison in the case if true<->false comparison.