Fix a query bug

There was type/big-type confusion.
[server] Fix an http routing issue