Fixed undefined variable in cf_endpoint