fixed bug of draging.(issue #79)