Fixed an error where an ELSE IF was used where an IF should have been used.