fix fetching data in getting prefixes