fix get file name bug