leo: fix compilation error