fix quiz states