Fix an oops in DQL construction