Fixed heap corruption error, improved generation performance, added more safeguards