fixed bug in toastr