Fix endomorphism z coordinate