fix for session flash