bug fix in windowlist