fixed dragging bug with IE and Firefox