fixed ouput bug in disable and enable funcs