Fixed bugs in response notification api.