fix API missmatch.