removed empty attributes block when there are not attributes