fix empty result set