Fix a bug where you could not delete a trigger having the span function