Fixed a dumb looping bug.