Bug #2714: fix adding a new customer in references