fixed a bug with TTL timeout