fixed undo delete relations on delete klass