Fix exporting of tags

Just an off by one error.