fix the local-dir attribute