fixed double printing of variable update value in html result