Hmm, isn't the second [wrap~] redundant anyway?
Theoretically yes, but practically it seems that adding the second wrap~ after wrap~ is exactly what fixes the problem!
http://lists.puredata.info/pipermail/pd-list/2007-05/049886.html
Hope this helps...
Claude