Correcting a syntax error