G test generator segment fixed