fixed the 'all gone' bug in the unity integration