fix reference numbering