fix 3d inaccuracies