Scope timeless to document instance.

[ fix #2991 ]