fixed bug with dragend