Avoid use of undefined variable before being used.