fix bug in static API