fixed type hinting bug