fix previous error from c