fix API broken