fix for incorrect posts_per_page detection