Fixed the resize on init.