fixed same prototype bug as in localStorage