second attempt at fixing draggable