fix m81r12 logic