fix delete-char bug

we could not delete the inserted spaces with delete-char nor
backward-delete-char