fixed errors with folders not being added