fixed num_results problem