fix FileEngine, divergent behavior when debug is off or on

is there any reason to have this behave differently with debug on or off ?