patch for nested updates when a joinTable is used