Fix undefined variable warning in GAF export