Fixed bug in draggable class