diff --git a/lib/WebGUI/AssetExportHtml.pm b/lib/WebGUI/AssetExportHtml.pm
index 0f68c2341..c8757f122 100644
--- a/lib/WebGUI/AssetExportHtml.pm
+++ b/lib/WebGUI/AssetExportHtml.pm
@@ -517,7 +517,7 @@ sub exportGetUrlAsPath {
my $config = $self->session->config;
# make sure that the export path is valid
- WebGUI::Asset->exportCheckPath($session);
+ WebGUI::Asset->exportCheckPath($self->session);
# if we're still here, it's valid. get it.
my $exportPath = $config->get('exportPath');