Memory corruption fix. C, I love you.