fixed issue with snippet not containing query