fixed complex doctest