Bugfix: Added missing code for properly comparing booleans