fixed drag behavior's bug