Coordinate Z Bug Fix