fixed bug with dragging shapes