fix huge global export bug