fixed deleteing folder bug