fixed wrong z offset