Fixed unusual app crash

Fixed bug when app crashed after adding new folder after cleanup