Correcting syntax error