fix bug on query timeout result