fixing metadata file name bug