Fixes error in export