fix gvc generate function