Fixed bug where window will not open after clear all