Fix c method definition