Fixed 'dir not exist' error