Could you use the $( syntax instead ? It's what we use in other places and if i remember properly it works better although i don't remember all the details why.