fix bug, removes attribute