Fixed typo.
Fixed loop.