Fix notifications bug

- Fix "array" problem of flash messages after registration