small fix for rich text bug after drag implementation