Fix issue in customer deletion.