Scoping issues with reports