Fix assertion for MSVC