Fixed loop for scanner/hash map