fix the double clicked Z translation