Fix windows collect metrics