Fixed heap overflow.