fix broken 3D simplex noise