Fix empty File issue