Fix marketstat query reported in issue #37