fix if no indices parameter was given, all indices need to be searched by default