fix spec flicker by assigning correct variable