fixed wrong coordinates on z axis