fix bug in setting zIndex of polylines