modified remove folders errors