fix error when api name has only one part (no "/")