Fix history size