Fixed queryfetch