replaced check in windows version with correct one