Bugfix in fetchresults