fix the overflow resulting of the height of the before