fix Polyline subclass bug