Fixed query loading issue.