controller: fix unattached controller situation