Fixes Function scope for yaml-generating call in bibcd provider