Fix history navigation for first page