fix deletion exception if no folder is created