fix history size