fixed history bug (similar name bug)