You've got an extra % in there:
Bad first, good second:
%s%ac%?%Ia<%Next:%Ia\%It| >
%s%ac%?Ia<%Next:%Ia\%It| >
That's just a cursory glance, so it may have another problem, but likely not.
Also, referring to it as the "wps config file" confused me, I thought your question was going to be about the theme file which ends in "cfg". You should refer to your wps file as just that, a wps file (leave out the word "config")