Fixed empty file name bug