fix for 0 result query