fixed a typo with the z-dist