bugfix: set flashes to template