Fixed issue with Main Window position state restore