Ensure that values are set before re-rendering