fix ensure index request