Fixed potencial bugs when encountering a classOp at run time