fix para_generate bug