fixed bug in numbering