fixed storing history for new entries