Fixed instanceof operator