fix branches length