Fix order of ops.