Added TTL bugfix reported by Eric Prud'hommeaux