Fix windows pending logic