Fixed timer restarting bug.