fixed an issue with up and down arrow