Frameworks: fix notification cancel on privacy guard