Prevent embeds from overflowing

Fixes #347