fix some type problems in istatd parsing