Fix an issue with potential code reordering.