Fixed old reference to z coordinate