Fixed __locals references