fixed bug when a folder is missing