Improvements and fixes to gloss deletion.