fix flowDrag and selectionChanged