fix save/restore of preferences torn-off-window state