Fix init issue when  is undefined #1272