Minor user space fix; forgot to guard one of the detach points.