fixed potential bad_weak_ptr thrown in ctor