A fix for a problem in resetting unread messages in window list