Fix small bug causing an error when showing alert notification.