Another bug fix which was causing a crash on config errors