Fixed error when editing attribute values.