fix overflow in parent element

fix for #18