Remove empty blocks