fixed multi-result bug