fixed another bugs in .getClass()