correct type error