fixed the detach binf