Fixed issues with session files