Fixing wps scripts