Fixed an unintentional boolean check