Corrected a bug in the sources input