fix bug in window coverage