Fix lexem editing bugs regarding LOC.