Fix character deletion