fix destroy to set first active after destroy