Fixed uniform init issue for Windows