fix css style after dragging