fixl problem on flat-text, and change parameter name to wo-pgroup