fixes various issues with draggable