fixed errors in event-based exporting...