fixed a bug in gbQueryParseLong function