Fix z location