fix for result set