fixed repository going to negative