fixed some bugs on Windows