fixed adding page 0 to index