New version works, but

The solution posted by RadFx in this thread worked.