Repeat function doesnt work again