fix setlocal