Callbacks should not to reset the memory object when calling disabled. Fix a bug preventing calling a resolved promise in a nested function.