fixed quiz enitity to work in more proper way