Fixed a type inconsistency