Fixed a bug with session flash data.