[release/3.0] fix spec flicker by assigning correct variable