fix the bug timer not repeating