Some fixes about the height changing.