Fixed a unsubscribe defect
Optimizing train history memory consumption