fix regression: beam editing