fixed weakkeydict crashing