hotfix on if statement