fix wrong height when used inside a flex container