fixed a type with mode.check