Fixed a bug that results in a wrong path position if a path contains a relative position after a close path segment (z)