fix of unrelate command

simple remove card if parent is null