Fix medi z offset