Fix query in browse controller