clearSources() didn't reset source variable.