fixed setlocal