fixed submit sample/update sample page causing an error on delete.