Fix bug in the path renderer