bugfix for not saving time window state