window bounds half working