fix when resizing between 1023/4