Fixed mistake when alerting the message if disableAlert = false