fixed issue with no output with variable span + `$context: auto`