Fixed heap corruption in previous commit.