Fixed error with toast messages