Fixed a crash due memory problem, now there is a problem with stepCommand to solve