Correct of bug #1

correct 2 bugs oparate for windows