Removed console.log.
There still was a reference, this was caching states.