fixed results_count bug