fixing repo state