Fixed bugs in add_customer API.