Fixing asyncsubject globals issues