Fix wrong index for argument length for query operations
Merge pull request #172 from esindril/master

Fix wrong index for argument length for query operations