error with result set fixed