fixed type checking bug for broadcast_from