Another bug fix.

appending a CreatedQuery to a string was done incorrectly