fixed index page showing posts in incorrectly order