fix add activity failure problem