fix moving with arrows after moving with script