API activity call fix