Fix error in if / else statement.