thanks msvc: fixed a bug