Fix bug about updating window information

No match.