fix source generation for bundles