remove localStorage initializing to undefined