fix buffer size
fix negative cache ttl