fix histroy size