fixed bug in arrow handling.