Corrects `checkStatement` method.