the same fix for editing triggers