Fixed resize issue for good (hopefully).