Some bugs removed by changing insert-chars to inserts