Fix the timer not working issue by increasing the timer priority