Bugfix: wrong attributed deleted from document
Fix for #115