fixed some bugs about base3d and it's subclass.