fixed RTM correctness.