Fixed a bug introducted in commit
b0f8990e367997901a59b6b63d28219351781b64 that caused exporting not to
export all data.