fix missing "else"