Make sure all features are merged together into one list before writing files