fixes bug on activity edit (scope of_variety need to be reviewed)