typo fixed in TOS management and some debugging log removed