Fix returning to wps from a plugin.