Fixes issues with exports.

#405.