adjusting window tolerance for modal