Fixes some state values not being copied over when recreating it.