Fix some API examples