R studio error report

scoxm<-step(coxm)
Error in x$terms %||% attr(x, "terms") %||% stop("no terms component nor attribute") :
没有项组件也没有属性

How to solve this problem?