fix error in mem RAW detection