fixed history.clear() bug
updated version