Updated syntax bug in 'else if' statement