Fix class keyword detect condition