correcting the file stack initialization