Fix performance with no widget window