Revert api call and remove debug log