patch for trigger problem