Fixed fileDiscovered initialization bug