fixed: if type error