some changes in flagmarkers, some fixes, but still incorrect work when showing 4 flagmarkers, also appears weird behavior when detach speed curve.