Fix bug in if statement.

- Put command under else statement