Fixed error that prevented changing attributes.