undetach fix