fixed historical history bug !!!!!