fixed history item id-s - now instead of 0's the ids are correct