Fixed bug with new results_per_page variable being converted to int