[BUGFIX] Fix bug in detach + ignore insecure versions