Fixed bug related to filename error