fixing trans for register