hard remove attributes on modal dismiss.