Fix bug #18
Opening a saved window then closing it clears the state