fix Hamilton 3D gaps