Fix loop so it doesn't click