translation logic fix