Fixed a bug with adding sources