fixing bug with source not being set properly in config