fix fragment reference for Safari