Fix bug in previous commit

Previous commit contained invalid code block (alertnotify)
Fix bug in previous commit

Previous commit contained invalid code block (alertnotify)