fix initial history length check