fix n cleanup