fixed notify issue resolving the promise