fix warning in several public api calls