fix prim teach result