fixed bad scope reference