fix bug where `Files = 0` threw an error