fixed storing errors in settings for WindowStates