PLOD fix and PLOD picking

Use range-based for loop and increment node_counter in loop block.