fixed a index error that occurs if the blog has fewer than the selected values for the rss or index page.