fixed variable assignment to occur after dom7 wrapper