BUG: Forgot to take care of case when detector is already named