Fix path method in polygon