Fixed a bug in toast messages