Fixing things because I'm not a C developer