--- loncom/homework/radiobuttonresponse.pm	2002/10/17 14:40:23	1.56
+++ loncom/homework/radiobuttonresponse.pm	2002/10/17 17:13:44	1.57
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # mutliple choice style responses
 #
-# $Id: radiobuttonresponse.pm,v 1.56 2002/10/17 14:40:23 sakharuk Exp $
+# $Id: radiobuttonresponse.pm,v 1.57 2002/10/17 17:13:44 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -86,10 +86,7 @@ sub start_foilgroup {
   &Apache::response::setrandomnumber();
   if ($target eq 'tex' && $Apache::lonhomework::type eq 'exam') {
       $result.='\item[\textbf{'.$Apache::lonxml::counter.'}.]';
-      $Apache::lonxml::counter++;
-      my %moreenv;
-      $moreenv{'form.counter'}=$Apache::lonxml::counter;
-      &Apache::lonnet::appenv(%moreenv);
+      &Apache::lonxml::increment_counter();
   }
   return $result;
 }