input updated for line & polyline to fix track bug