fix empty result issue