Fix bug in new visual notifications code