Looped for ever.

Fixed infinity loop.