fix for removing attributes