Window doesn't update