Fix stupid C bugs.