Fixed: Cannot cast integer to bool.