fixed a type fail