Fixed bug where sorting/grouping on a stored field wouldn't work