Fix some bug.Raise the TypeError if FD compare with the diffrent type.