Fixed bug, export calculation now works correctly