Fix source query