Fixed a boolean logic oopsy