Fixed incorrectly intented 'if' statement with dangling 'else'.