fixed right arrow bug