Fix undefined variable name