Repeat function doesn't work again