fix issue with api