fix bug with arrow positioning