Fix delete folder error.