fixed logic bug in server side translation