Fix bug on reference number