fix conversion error in stepping