fixed error when the folder not found