fixed iconClass function