Stupid logic error

Hotfix.