Windows build bug fix