correct 3D coordinate system error