fixed bug of dragging error