Fixed type inconsistency