Fix leak of active widgets