fixed some errors for 3d