Fix problem with undefined variable.