fix struct export attributes