bug fixes when translating literal