fixing issue with updating activity definition