fixed preventDefault for anchors