fix ttl in update statement