Correctly populate reference number