weird bug with local storage

the value of local storage is not equaling the int equivalent