fix bug, directory not found