Fix bug in dashoffset updating