fixed iconClass function

iconClass function had redundant calling of attribs, making icons null.