FIX: regression caused by changes in insert-char function