Fixed initialization of FileStream