fix folder closed exception