Additional fixes in write_customer() definition.