Fix randomly failing attribute scenario