fix windows measurement issue