fix use_sources and unique