make code can restart

If restart, there is param_data in the envir, the original way will just
delete it