fix error when fileName blank