fix navigator.local init