Fix repeating bug.