fix overflow in tables