Fix the make_custom_endpoint_call()