Fix duplicated outputs in autodetection