fixed history page bug