Fixing bug with modal, toastr and noty