fixes stroke flicker