fix a bug in service declaration

Query arguments were not being passed correctly.