'else if' statement fixed

Fixed 'else if' command by swapping 'if' and 'else if' parts around. No
idea why that worked.