Fixed an issue where window could resize on open.