Clean up initialization of textvars