fix the bug that add drag but cannt edit in the text