Fixing load. Throws a bad allocation error while rebuilding from file.