Fixes crash on Windows (+ temporarily disabling an assert)