fix index page rendering