grant sparql bugfix