fixed initial history bug