patch for jersey problem