fixed a bug with new tasks not getting correct resource-group