fix delete bug while filenmae set to empty str