Fixed small bug in queryToHTML class.