bug with adding new folder during check