Fix undefined variable value