fix exception when resultqueue=[]