Fix to set right tid when adding a vulnerability