Fix update of records on update and delete
Fix: missing dependency $state defected trasnitionTo after delete