API compilation error fix