fixed history api 2