Fixed small flashing logic error
Windows fixes