fix some draggable and resizable issues