Fixed this scoping issue