Fixed infinite loop in the FabricExporter.