fixed history.js problem with delete