fixing conversion of posts_per_page argument