Renames variable

It seems like during a refactoring `q` became `string` but wasn't updated here