fix deletion with attribute