fix automatic numbering