scope widening exception fix