fix endpoint_absent undefined variable error