bugfix on if statement