Fixed error with undefined variable name.