bug for localstorage defaults