'else if' problem in IfStatement