fix empty result in dibi query