Bugfix a stupid if