Fix bug where dragging profiles when there is a sort descriptor ignores the first drag
Fix some warnings