Fixed categories not being properly updated when adding threads from the clipboard