fixed error in calling store.query(.., limit=-1)