fix the windows query