fix classcastexception happens on while serializing query results