Fixed editing of activities