fix duplicate bug for multi-lang environment