fix set/setlocal mistakes