Fix empty file loading