Fix module ID -> DBG_ option ID logic