fixed scope error in output box.