Fixing make-dets bug. Something fucked with it