solve BAD12M bug