Fixed corrupt boolean check