fix moving lines up/down