fix counting for windows in workareas

--one more attempt to fix counting for windows in
workareas. I think this time is the last one... :)