Fixed undefined: initLocal