Fixed a boolean check.