Fix for incorrect "else if" where "if" was meant.