Fix API exporting