fix APIStack object