Winows test and fix some bug