Bug in timer restoring