Now flash messages works properly.