fix compile error: update api used by my patch