fixed jumping arrow code