fixed bug in cache allocation effecting element name checking in sax parser