Fixing 3d sample