Fix history depth