corrected the windows checks