Fix to prevent warning when dragging widgets