add win line to 50 and fix some bugs