bug in removeItem for browser local storage