fix repository error