fix detach

Signed-off-by: Chuck Short <chuck.short@canonical.com>