Fix #738 arrow-end attribute may cause javascript error