Fixed bad logic.
- Thanks to Luke O'Sullivan for the catch.