bugfix default 0 as id on edit