Fix minor heap corruption issue.