Fix bug in navigator.notification