Fixed a logic error...