Corrected more bugs regarding syntax error detection.