Fixed bug where renaming a task would sometimes rename a data group.

Signed-off-by: Andrei Preda <andreipreda07@gmail.com>