Fix text block ordering