minor bugfix in sparql query