type error fix