Fix handling windows during OTP validation