fix detaching on Trusty