Fixed small bug in arrow generation