fix when using session FILE