Have fixed some bugs under the environment of Windows