fix bug in nick iteration