Fixed a stupid logical error from previous commit