fix equations.cpp:CmdBeginEnd problem of can not return.