fix restarting timer