fix error at no sql results.