Fix metadata command when no heading available.