fix issue in api