fixed Customer API function error