fix repository out bug