Fixed the z value