Removes extra "else" statement.