fix the height of the cap