fixing quotation number generation