fix: Fixes the object issues pointed out in #2543
fix: Fixes the object issues pointed out in #2543

- Shoutout to the debug hero finding them: @StefanKelm

MISP/MISP,FIRSTdotorg/MISP,MISP/MISP,TheDr1ver/MISP,SteveClement/MISP,Rafiot/MISP,devnull-/MISP,TheDr1ver/MISP,Rafiot/MISP,FloatingGhost/MISP,MISP/MISP,MISP/MISP,devnull-/MISP,SteveClement/MISP,MISP/MISP,FloatingGhost/MISP,Rafiot/MISP,devnull-/MISP,FloatingGhost/MISP,FIRSTdotorg/MISP,SteveClement/MISP,SteveClement/MISP,SteveClement/MISP,TheDr1ver/MISP,devnull-/MISP,TheDr1ver/MISP,FIRSTdotorg/MISP,FloatingGhost/MISP,Rafiot/MISP,FIRSTdotorg/MISP