Local storage getItem bug