Fixed bug in passing max_results on the command line