fix bug related to changing a source