prevent crash on 'add folder'
fixing add button behavior in single folder mode