Update export_stage.r