Fixes scope reference