Fixed bug in dot-percent insertion routine.