Fix literal location updating