This is corrected by pressing the UNDO button, but this is not a satisfactory solution.
When I insert numbering, once again every line in the document is numbered and formatting in the whole document changes.