fixed bug in dragging stages