empty string gets converted to null which causes problems. Be sure to default scan path to empty string.