patch for variable problem