fixed bug in SAX which yielded divide-by-zero errors.