Fix bug loop.