fixing windows max depth test