fix erros with quiz result calc