fix bug in Attributes block