Hopefully fixed the race condition with the sax parser