fixed #10 getClass() == obj.getClass()