fixed delete folder bug