I know this is temp code anyway, but why are you creating a new one now instead of changing the state?