Fixing the erros. Really back in C