fix _after_export method syntax