Fixed doctest errors