Bug fix for writing window update frames