clear type error