Fix dragging text bug