Fix size being wrong after resize.