Bug with detach fixed.