Fixed a nasty bug with edit & update

Woof !