fix %n specifier, again. this time it was storing the wrong value.