Fix #491 Only render the last index page