Fixed a bug where the getPart method returned the same polyling no matter the selection point.