fix compile random error for msvc