Corrected memory order in some cases.