bug fix when --meta arg is used