Fixes bug on remove_attr