fix tail doctest