applied patch for hook bug