fixes #1783 rest ttl issue