Fix sample API