Fixed some error on Windows