fix wrong set for the flash messages