fixed bug in run_analysis