Fix delete folder issue