fix bug setting polyline zIndex on focus