fix some bugs when loading Animation3D from binary file