fix source not found due to an SQL syntax error