BUGFIX: Stupid logic error