Fixed process_sources